import request from '@/utils/request'

export function getStudents(data) {
  return request({
    url: '/admin/studentList',
    method: 'post',
    data
  })
}

export function adminChangeStudent(data) {
  return request({
    url: '/admin/student/change',
    method: 'post',
    data
  })
}

export function adminDelStudent(data) {
  return request({
    url: '/admin/student/del',
    method: 'post',
    data
  })
}

export function adminAddStudent(data) {
  return request({
    url: '/admin/student/create',
    method: 'post',
    data
  })
}

export function teacherAddStudent(data) {
  return request({
    url: '/teacher/class/student/add',
    method: 'post',
    data
  })
}
